"""


Version: 0.1
Author: lk
Date: 2022-03-08 15:09
"""


def adjust_learning_rate():
    return None


class AverageMeter(object):
    def __init__(self):
        self.val=0
        self.count=0
        self.sum=0
        self.avg=0
        self.reset()
    def reset(self):
        self.val=0
        self.count=0
        self.sum=0
        self.avg=0
    def update(self,val,n=1):
        self.val=val
        self.count += n
        self.sum += val * n
        self.avg = self.sum / self.count

